﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Show.aspx.cs" Inherits="Student_Show" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList ID="StudentShowList" runat="server" BackColor="White" BorderColor="#999999"
            BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyField="id" DataSourceID="SqlDataSource1"
            GridLines="Vertical">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <ItemTemplate>
                Id:
                <asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>'></asp:Label><br />
                
                学号:
                <asp:Label ID="stuIdLabel" runat="server" Text='<%# Eval("stuId") %>'></asp:Label><br />
                姓名:
                <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>'></asp:Label><br />
                密码:
                <asp:TextBox ID="passwordLabel" runat="server" Text='<%# Eval("password") %>'></asp:TextBox><br />
                班级:
                <asp:TextBox ID="classInLabel" runat="server" Text='<%# Eval("classIn") %>'></asp:TextBox><br />
                性别:
                <asp:DropDownList id = "sexlist" SelectedValue='<%# DataBinder.Eval(Container.DataItem,"sex")%>'   runat="server">
                    <asp:ListItem Value="男" Text="男" />
                    <asp:ListItem Value="女" Text="女" />
                </asp:DropDownList>
                <br />
                年龄:
                <asp:TextBox ID="ageLabel" runat="server" Text='<%# Eval("age") %>'></asp:TextBox><br />
                安全号码:
                <asp:Label ID="scurityNoLabel" runat="server" Text='<%# Eval("scurityNo") %>'></asp:Label><br />
                E-Mail:
                <asp:TextBox ID="emailLabel" runat="server" Text='<%# Eval("email") %>'></asp:TextBox><br />
                联系方式:
                <asp:TextBox ID="phoneLabel" runat="server" Text='<%# Eval("phone") %>'></asp:TextBox><br />
                注册日期:
                <asp:Label ID="registerDateLabel" runat="server" Text='<%# Eval("registerDate") %>'>
                </asp:Label><br />
                <br />
            </ItemTemplate>
            <AlternatingItemStyle BackColor="#DCDCDC" />
            <ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            </asp:DataList><br />
        <asp:Button ID="btnSubmit" runat="server" OnClick="Button1_Click" Text="Button" /><br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:onlineexamConnectionString %>"/>
        <asp:Label ID="msg" Visible="false" runat="server" />
    </div>
    </form>
    
</body>
</html>
